package example.chapter12.radio;

import java.util.HashMap;
import java.util.Map;

import com.opensymphony.xwork2.ActionSupport;

public class RadioTagAction extends ActionSupport{
	private Map<String,String> mapGender;
	private String gender = "M";
	
	public String execute() throws Exception{
		mapGender = new HashMap<String,String>();
		mapGender.put("M", "male");
		mapGender.put("F", "female");
		
		System.out.println("gender = " + gender);
		
		return SUCCESS;
	}

	public Map<String, String> getMapGender() {
		return mapGender;
	}

	public void setMapGender(Map<String, String> mapGender) {
		this.mapGender = mapGender;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}
	
}
